package com.xzl.time.pojo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.xzl.time.pojo.vo.AdminVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @describe ：消息内容
 * @PageLocation:
 * @Auther xzl
 * @Date 2022/1/7 15:29
 */
@Data
@ApiModel(value="t_notice对象", description="消息内容")
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
public class Notice {

    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("接收消息的用户ID")
    private String receiverId;
    @ApiModelProperty("进行操作的用户ID")
    private String operatorId;

//    private String operatorName;//进行操作的用户昵称

    @ApiModelProperty("操作类型（评论，点赞等）")
    private String action;
    @ApiModelProperty("对象类型（评论，点赞等）")
    private String targetType;

//    private String targetName;//对象名称或简介

    @ApiModelProperty("对象id")
    private String targetId;
    @ApiModelProperty("创建日期")
    private Date createTime;
    @ApiModelProperty("消息类型 sys系统消息  user用户消息")
    private String type;
    @ApiModelProperty("消息状态（0 未读，1 已读）")
    private Boolean state;

    @ApiModelProperty("取消或确认")
    private int cancelOrConfirm;

    @ApiModelProperty("发送消息的用户")
    private AdminVo adminVo;

    @ApiModelProperty("消息对象是文章的")
    private Article article;

    @ApiModelProperty("消息对象是评论的")
    private Comment comment;

}
